package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Ticket;
import cn.wolfcode.luowowo.article.domain.TicketDetail;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface TicketDetailMapper {

    int insert(TicketDetail record);
    List <TicketDetail> selectAll();


    BigDecimal selectMinPrice(Long tid);

    List <Date> selectEarlyAccessTime(Long id);

    Ticket selectByid(Long id);

    BigDecimal selectMaxPrice(Long id);

    List <TicketDetail> selectBydestIdAndTicketlId(@Param("destId") Long destId, @Param("tid") Long tid);

    TicketDetail selectByloscId(@Param("tid") String tid);



}